package com.ruoyi.location.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 空间位置对象 t_base_space_location
 *
 * @author ruoyi
 * @date 2023-05-29
 */
public class TBaseSpaceLocation extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 空间主键 */
    @Excel(name = "空间主键")
    private Long id;

    /** 上级id */
    private Long pid;

    /** 位置名称 */
    @Excel(name = "位置名称")
    private String locationName;

    /** 层级名称 */
    @Excel(name = "层级名称")
    private String tierNaem;

    /** 学校id */
    @Excel(name = "学校id")
    private Long ipassSchoolId;

    /** 学校名称 */
    @Excel(name = "学校名称")
    private String schoolName;

    /** 是否有效 0有效 1无效 */
    @Excel(name = "是否有效 0有效 1无效")
    private Integer status;

    /** 是否删除 0未删除 1删除 */
    private Integer isDelete;

    /** 创建时间 */
    private Date createDate;

    /** 修改时间 */
    private Date modifyDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setPid(Long pid)
    {
        this.pid = pid;
    }

    public Long getPid()
    {
        return pid;
    }
    public void setLocationName(String locationName)
    {
        this.locationName = locationName;
    }

    public String getLocationName()
    {
        return locationName;
    }
    public void setTierNaem(String tierNaem)
    {
        this.tierNaem = tierNaem;
    }

    public String getTierNaem()
    {
        return tierNaem;
    }
    public void setIpassSchoolId(Long ipassSchoolId)
    {
        this.ipassSchoolId = ipassSchoolId;
    }

    public Long getIpassSchoolId()
    {
        return ipassSchoolId;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setIsDelete(Integer isDelete)
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete()
    {
        return isDelete;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setModifyDate(Date modifyDate)
    {
        this.modifyDate = modifyDate;
    }

    public Date getModifyDate()
    {
        return modifyDate;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("locationName", getLocationName())
            .append("tierNaem", getTierNaem())
            .append("ipassSchoolId", getIpassSchoolId())
            .append("status", getStatus())
            .append("isDelete", getIsDelete())
            .append("createDate", getCreateDate())
            .append("modifyDate", getModifyDate())
            .toString();
    }
}
